import os

# get env vars
redirect_uri = os.getenv('REDIRECT_URI')
scope = os.getenv('SCOPE')
client_id = os.getenv('CLIENT_ID')

# build oAuth url
url = 'https://id.twitch.tv/oauth2/authorize?'
url += 'client_id={0}'.format(client_id)
url += '&redirect_uri={0}'.format(redirect_uri)
url += '&response_type=token'
url += '&scope={0}'.format(scope)
print(url)
